Release 10.1A: OpenEdge Getting Started:
Object-oriented Programming


Using compile-time arguments

Compile-time arguments are a mechanism to pass compile-time values to an external procedure file or an include file. This facility is not supported for classes but is supported by include files referenced by a class, as shown:

CLASS Test: 
    CONSTRUCTOR PUBLIC Test (INPUT in AS INTEGER): 
        {build-info.i &build-num=num &build-date=today} 
    END CONSTRUCTOR. 
END CLASS. 

This is the contents of build-info.i:

MESSAGE {&build-num}  
        {&build-date}  
        VIEW-AS ALERT-BOX. 


Copyright © 2005 Progress Software Corporation
www.progress.com
Voice: (781) 280-4000
Fax: (781) 280-4095